package com.steadyoung.modelapp.entity.user;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;

import java.io.Serializable;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/11/27.
 * Email : steadyoung@foxmail.com
 * Auth  : wayne
 * Desc  : 用户信息
 */
    @Entity
public class User implements Serializable {
    private static final long serialVersionUID = 7152295851401238172L;
    @Id(autoincrement = true)
    private Long id;
    /**用户名*/
    @NotNull
    private String  userName;
   /**密码*/
   @NotNull
    private String  password;
@Generated(hash = 449926720)
public User(Long id, @NotNull String userName, @NotNull String password) {
    this.id = id;
    this.userName = userName;
    this.password = password;
}
@Generated(hash = 586692638)
public User() {
}

    public User(String userName, String password) {
        this.userName = userName;
        this.password = password;
    }

    public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getUserName() {
    return this.userName;
}
public void setUserName(String userName) {
    this.userName = userName;
}
public String getPassword() {
    return this.password;
}
public void setPassword(String password) {
    this.password = password;
}

}
